#ifndef PRINTTOOL_H
#define PRINTTOOL_H

#include <QWidget>
#include <QPrinter>
#include <QPrintPreviewDialog>
#include <QPrintDialog>
#include <QFileDialog>
#include <QMessageBox>
#include <QDebug>
#include "qpainter.h"


namespace Ui {
class PrintTool;
}

class PrintTool : public QWidget
{
    Q_OBJECT

public:
    explicit PrintTool(QWidget *parent = nullptr);
    ~PrintTool();

private:
    Ui::PrintTool *ui;

public slots:
    void printPreviewSlot(QPrinter* printerPixmap);

public:
    void printEvent(QPixmap printPixmap, QWidget *parentWidget);

private:
    QPixmap printPixmap;
    QWidget *parentWidget;

};

#endif // PRINTTOOL_H
